home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / ubuntu / aufs / Makefile < prev   
Encoding:
Makefile  |  2009-09-09  |  2.2 KB  |  75 lines

  1. # AUFS Makefile for the Linux 2.6.25 and later
  2. # $Id: Makefile,v 1.8 2008/08/04 00:32:21 sfjro Exp $
  3.  
  4. # the environment variables are not inherited since 2.6.23
  5. ifdef AUFS_EXTRA_CFLAGS
  6. ccflags-y += ${AUFS_EXTRA_CFLAGS}
  7. endif
  8.  
  9. ########################################
  10.  
  11. ifdef CONFIG_AUFS_RR_SQUASHFS
  12. # cf. squashfs3.2-r2 and sqlzma patch.
  13. ccflags-y += -DSQUASHFS_MAGIC=0x73717368
  14. ccflags-y += -DSQUASHFS_MAGIC_SWAP=0x68737173
  15. ccflags-y += -DSQUASHFS_MAGIC_LZMA=0x71736873
  16. ccflags-y += -DSQUASHFS_MAGIC_LZMA_SWAP=0x73687371
  17. endif
  18.  
  19. # defined in ${srctree}/fs/fuse/inode.c
  20. ccflags-$(CONFIG_AUFS_WORKAROUND_FUSE) += -DFUSE_SUPER_MAGIC=0x65735546
  21.  
  22. # defined in ${srctree}/fs/xfs/xfs_sb.h
  23. # tristate
  24. ifdef CONFIG_XFS_FS
  25. ccflags-y += -DXFS_SB_MAGIC=0x58465342
  26. endif
  27.  
  28. # defined in ${srctree}/mm/shmem.c in linux-2.6.26 and earlier
  29. # tristate
  30. ifdef CONFIG_TMPFS
  31. ccflags-y += -DTMPFS_MAGIC=0x01021994
  32. endif
  33.  
  34. # defined in ${srctree}fs/sysfs/mount.c
  35. # bool
  36. ccflags-$(CONFIG_SYSFS) += -DSYSFS_MAGIC=0x62656572
  37.  
  38. ifndef EXTRAVERSION
  39. EXTRAVERSION = $(shell echo ${KERNELVERSION} | cut -f3- -d. | cut -f2- -d-)
  40. endif
  41. # for -mm tree, support the latest version only
  42. ifneq ($(strip $(shell echo ${EXTRAVERSION} | fgrep -- mm)),)
  43. ccflags-y += -DCONFIG_AUFS_UNIONFS22_PATCH -DCONFIG_AUFS_UNIONFS23_PATCH
  44. endif
  45.  
  46. -include $(dir $(lastword ${MAKEFILE_LIST}))priv.mk
  47. #$(warning ${ccflags-y})
  48.  
  49. ########################################
  50.  
  51. obj-$(CONFIG_AUFS) += aufs.o
  52. aufs-y := module.o super.o sbinfo.o branch.o xino.o sysaufs.o opts.o \
  53.     wkq.o vfsub.o dcsub.o \
  54.     cpup.o whout.o plink.o wbr_policy.o \
  55.     dentry.o dinfo.o \
  56.     file.o f_op.o finfo.o \
  57.     dir.o vdir.o \
  58.     inode.o i_op.o i_op_add.o i_op_del.o i_op_ren.o iinfo.o \
  59.     misc.o
  60.  
  61. aufs-$(CONFIG_SYSFS) += sysfs.o
  62. aufs-$(CONFIG_AUFS_BR_NFS) += br_nfs.o
  63. aufs-$(CONFIG_AUFS_BR_XFS) += br_xfs.o
  64. aufs-$(CONFIG_AUFS_WORKAROUND_FUSE) += br_fuse.o
  65. aufs-$(CONFIG_AUFS_DLGT) += dlgt.o
  66. aufs-$(CONFIG_AUFS_HINOTIFY) += hinotify.o
  67. aufs-$(CONFIG_AUFS_HIN_OR_DLGT) += hin_or_dlgt.o
  68. aufs-$(CONFIG_AUFS_HIN_OR_FUSE) += hin_or_fuse.o
  69. aufs-$(CONFIG_AUFS_EXPORT) += export.o
  70. aufs-$(CONFIG_AUFS_ROBR) += robr.o
  71. # reserved for future use
  72. #aufs-$(CONFIG_AUFS_XATTR) += xattr.o
  73. aufs-$(CONFIG_AUFS_DEBUG) += debug.o
  74. aufs-$(CONFIG_AUFS_MAGIC_SYSRQ) += sysrq.o
  75.